home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / mgr.zoo / mgrdif1.zoo / lib / Makefile
Encoding:
Makefile  |  1991-03-01  |  2.2 KB  |  92 lines

  1. #                        Copyright (c) 1987 Bellcore
  2. #                            All Rights Reserved
  3. #       Permission is granted to copy or use this program, EXCEPT that it
  4. #       may not be sold for profit, the copyright notice must be reproduced
  5. #       on copies, and credit should be given to Bellcore where it is due.
  6. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  
  8. #    $Header: Makefile,v 4.5 88/08/29 13:38:23 sau Exp $
  9. #    $Source: /tmp/mgrsrc/lib/RCS/Makefile,v $
  10.  
  11. # makefile for mgr c-interface library
  12. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  13. CROSSBIN = $(CROSSDIR)/bin
  14. CC=$(CROSSBIN)/cgcc
  15. AR=$(CROSSBIN)/car
  16. HOSTCC = cc
  17. HOSTCCFLAGS = -O  -I. -Iatari -I../lib
  18.  
  19. INSROOT=/mgr
  20. LIB= ./term.o
  21. INSDIR=$(INSROOT)/lib
  22. INCLDIR=$(INSROOT)/include
  23. START=.
  24. CPIO=lib.cpio
  25.  
  26. CFLAGS= -mint -O -nostdinc \
  27.  -I/net/acae127/home/bammi/atari/mint/mintlib/include \
  28. -fomit-frame-pointer -fcombine-regs -I.
  29.  
  30.  
  31. PORTCFILES = ckmgrterm.c term.c text.c sfont.c sin.c
  32. CFILES = $(PORTCFILES) scribe.c
  33. OFILES = ckmgrterm.o term.o text.o sfont.o scribe.o sin.o
  34. HFILES = window.h term.h restart.h dump.h
  35.  
  36.  
  37. all small:    $(OFILES) libmgr.olb
  38.  
  39. fast:
  40.         $(CC) -c $(CFLAGS) $(PORTCFILES)
  41.         rm -f libmgr.olb
  42.         make all
  43.  
  44. libmgr.olb:    $(OFILES)
  45.         $(AR) rsv $@ $?
  46.  
  47. term.o:        term.h window.h restart.h
  48.  
  49. text.o:        term.h window.h
  50.  
  51. #textlib.o:    text.o sfont.o scribe.o sin.o 
  52. #        $(LD) -r -o textlib.o  text.o sfont.o scribe.o sin.o 
  53.  
  54. #    the optimizer dies on scribe.c 
  55.  
  56. scribe.o:    scribe.c
  57. #        cc -c scribe.c /* not here */
  58.  
  59. smallinstall:    install
  60.  
  61. install:    all $(INSDIR) $(INCLDIR)
  62.     cd $(INCLDIR);  rm -f $(HFILES)
  63.     cp $(HFILES) $(INCLDIR)
  64. #        Do not install the files if INSDIR is the current directory.
  65. #        This stuff with ReMoveThisFile is to get around symbolic links.
  66.     rm -rf ./ReMoveThisFile
  67.     touch $(INSDIR)/ReMoveThisFile
  68.     if [ ! -f ./ReMoveThisFile ]; then \
  69.         (cd $(INSDIR);  rm -f libmgr.olb ); \
  70.         cp libmgr.olb $(INSDIR); \
  71.     else \
  72.         echo ">>  $(INSDIR) == current directory; no files copied"; \
  73.     fi
  74.     rm -rf $(INSDIR)/ReMoveThisFile
  75.  
  76. $(INSDIR) $(INCLDIR):
  77.         mkdir $@
  78.  
  79. clean:    
  80.         rm -f *.o core
  81.  
  82. clobber:
  83.         rm -f $(OFILES) libmgr.olb bitmap.h blitlib.a
  84.  
  85. list:
  86.     @for i in Makefile ${CFILES} ${HFILES}; do \
  87.         echo "${START}/$$i"; \
  88.     done    
  89.  
  90. cpio:
  91.     make -s list | cpio -ocv > ${CPIO}
  92.